package com.nit.lab.dto;

import com.nit.lab.model.SysFileEntity;

/**
 * @author be_yond
 * @date 2017/10/24
 */
public class DtoSysFile {
    private Integer fileId;
    private String fileName;
    private Integer fileBelong;
    private String fileUrl;
    private String keyWord;
    private Integer fileFormat;
    private Integer isPublic;
    private Integer userId;
    private Integer actorId;
    private Double price;
    private Integer browseCount;
    private Integer downloadCount;
    private String uploadTime;
    private Integer isDelete;
    private String userRealName;
    private String userName;
    private String storeName;
    private Integer storeId;

    public DtoSysFile() {
    }


    public DtoSysFile(String userRealName, Integer fileId, String fileName, Integer fileBelong, String fileUrl, String keyWord, Integer fileFormat, Integer isPublic, Integer userId, Double price, Integer browseCount, Integer downloadCount, String uploadTime, String storeName,Integer storeId) {
        this.userRealName = userRealName;
        this.fileId = fileId;
        this.fileName = fileName;
        this.fileBelong = fileBelong;
        this.fileUrl = fileUrl;
        this.keyWord = keyWord;
        this.fileFormat = fileFormat;
        this.isPublic = isPublic;
        this.userId = userId;
        this.price = price;
        this.browseCount = browseCount;
        this.downloadCount = downloadCount;
        this.uploadTime = uploadTime;
        this.storeName = storeName;
        this.storeId = storeId;
    }

    public DtoSysFile(String userName,String userRealName, Integer fileId, String fileName, Integer fileBelong, String fileUrl, String keyWord, Integer fileFormat, Integer isPublic, Integer userId, Double price, Integer browseCount, Integer downloadCount, String uploadTime) {
        this.userName = userName;
        this.userRealName = userRealName;
        this.fileId = fileId;
        this.fileName = fileName;
        this.fileBelong = fileBelong;
        this.fileUrl = fileUrl;
        this.keyWord = keyWord;
        this.fileFormat = fileFormat;
        this.isPublic = isPublic;
        this.userId = userId;
        this.price = price;
        this.browseCount = browseCount;
        this.downloadCount = downloadCount;
        this.uploadTime = uploadTime;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public Integer getFileFormat() {
        return fileFormat;
    }

    public void setFileFormat(Integer fileFormat) {
        this.fileFormat = fileFormat;
    }

    public Integer getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(Integer isPublic) {
        this.isPublic = isPublic;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getBrowseCount() {
        return browseCount;
    }

    public void setBrowseCount(Integer browseCount) {
        this.browseCount = browseCount;
    }

    public Integer getDownloadCount() {
        return downloadCount;
    }

    public void setDownloadCount(Integer downloadCount) {
        this.downloadCount = downloadCount;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getFileBelong() {
        return fileBelong;
    }

    public void setFileBelong(Integer fileBelong) {
        this.fileBelong = fileBelong;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getActorId() {
        return actorId;
    }

    public void setActorId(Integer actorId) {
        this.actorId = actorId;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public SysFileEntity toModel() {
        SysFileEntity sysFileEntity = new SysFileEntity();
        sysFileEntity.setUserId(userId);
        sysFileEntity.setFileUrl(fileUrl);
        sysFileEntity.setFileName(fileName);
        sysFileEntity.setUploadTime(uploadTime);
        sysFileEntity.setFileId(fileId);
        sysFileEntity.setKeyWord(keyWord);
        sysFileEntity.setFileFormat(fileFormat);
        sysFileEntity.setIsPublic(isPublic);
        sysFileEntity.setPrice(price);
        sysFileEntity.setBrowseCount(browseCount);
        sysFileEntity.setIsDelete(isDelete);
        sysFileEntity.setDownloadCount(downloadCount);
        return sysFileEntity;
    }
}
